package com.jwds.digital.bios.business.rpc.feign.fallback;

import com.jwds.tdc.framework.application.lib.BaseResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author hesong
 */
@Slf4j
@Component
public class DefaultFallBack {
    private static final String DEFAULT_MSG = "服务降级!";

    public BaseResponse fallBack() {
        log.error("Feign Request ERROR:{}", "调用流程决策微服务接口异常，服务降级！");
        return BaseResponse.error(DEFAULT_MSG);
    }
}
